import Vue from 'vue'
import App from './App'
import Router from 'vue-router'
import 'normalize.css'
import 'mint-ui/lib/style.css'
import { Search } from 'mint-ui'
import VueLazyload from 'vue-lazyload'

Vue.component(Search.name, Search);

Vue.use(VueLazyload, {
    preLoad: 1,
    loading: require('../../../static/img/defaultimg.jpg'),
     error: require('../../../static/img/errimg.png')
});

Vue.use(Router);

Vue.config.productionTip = false

import Kecwork from 'components/skills/kecwork';
import Kecskill from 'components/skills/kecskill';
import Industrialin from 'components/skills/Industrialin';
import Marine from 'components/skills/Marine';
const router = new Router({
    // mode: 'history',
    routes: [
        {path: '/', redirect: '/kecwork'},
        {path: '/kecwork', component: Kecwork},
        {path: '/kecskill', component: Kecskill},
        {path: '/industrialin', component: Industrialin},
        {path: '/marine', component: Marine},
    ]
})

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	components: { App },
	render: h => h(App)
})
